package com.fiberhome.nas.core.network.datasource.album

import com.fiberhome.nas.core.model.entity.AlbumInfo
import com.fiberhome.nas.core.model.response.ListData
import com.fiberhome.nas.core.model.response.NetworkResponse
import com.fiberhome.nas.core.network.base.BaseNetworkDataSource
import com.fiberhome.nas.core.network.service.AlbumService
import javax.inject.Inject

/**
 * 相册相关网络数据源
 */
class AlbumNetworkDataSourceImpl @Inject constructor(
    private val albumService: AlbumService
) : BaseNetworkDataSource(), AlbumNetworkDataSource {

    override suspend fun getAlbumList(): NetworkResponse<ListData<AlbumInfo>> {
        return albumService.getAlbums()
    }
}